{extend name="Public:base" /}
      {block name="seo"}
              <title>{$groupinfo['name']}|话题详情页|{$Think.CONFIG.WEB_SITE_TITLE} - Powered by EasySNS!</title>
  
  
  <meta name="keywords" content="{$Think.CONFIG.WEB_SITE_KEYWORD}">
  <meta name="description" content="{$Think.CONFIG.WEB_SITE_DESCRIPTION}">
      {/block}
{block name="body"}
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="col-sm-12">
				<div class="aw-global-tips">
									</div>
			</div>
		</div>
	</div>

	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="col-sm-12 col-md-9 aw-main-content">
					<div class="aw-mod aw-topic-detail-title">
						<div class="mod-body">
							
							<img src="{$groupinfo['cover_id']|get_groupavatar}" alt="{$groupinfo['name']}" style="width:50px;height:50px;">
							
							<div class="pull-left ">
							<h2>{$groupinfo['name']} </h2>
							
												<div class="media-metas clearfix ">

      
        <span class="es-margin-l-10">{$groupinfo['topiccount']}个帖子</span>
        <span class="fsn es-margin-l-10">创建时间：{$groupinfo['create_time']|friendlyDate}</span>

      </div>
							</div>
							
						{if condition="session('member_info')"}	
							<div class="aw-topic-operate text-color-999">
							
									<a class="btn btn-normal btn-success" href="{:es_url('Topic/topicadd',array('name'=>$groupinfo['name']))}"><i class="iconfont icon-fabu2"></i> 发帖</a>
								
							</div>
	{/if}
						</div>
																				      
					</div>

					<div class="aw-mod aw-topic-list-mod">
						<div class="mod-head">
							<div class="tabbable">
								<!-- tab 切换 -->
								<ul class="nav nav-tabs aw-nav-tabs hidden-xs">
									<li class="active"><a href="#all" data-toggle="tab">全部内容</a></li>
							
																		<li><a href="#recommend" data-toggle="tab">推荐</a></li>
																		{if condition="session('member_info')"}	
																		<li><a href="#favorite" id="i_favorite" data-toggle="tab" >我的收藏</a></li>
									{/if}
						
								</ul>
								<!-- end tab 切换 -->
							</div>
						</div>

						<div class="mod-body">
							<!-- tab 切换内容 -->
							<div class="tab-content">
								<div class="tab-pane active" id="all">
									<!-- 推荐问题 -->
																		<!-- end 推荐问题 -->
									<div class="aw-mod">
										<div class="mod-body">
											<div class="aw-common-list" id="c_all_list">
												


											</div>
										</div>
										<div class="mod-footer">
											<a class="aw-load-more-content" id="c_all_more" >
												<span>更多...</span>
											</a>
										</div>
									</div>
								</div>

							
							<div class="tab-pane" id="recommend">
																<div class="aw-mod">
										<div class="mod-body">
											<div class="aw-common-list" id="c_recommend_list">
												


											</div>
										</div>
										<div class="mod-footer">
											<a class="aw-load-more-content" id="c_recommend_more"  >
												<span>更多...</span>
											</a>
										</div>
									</div>
					
								</div>
							

								

							
{if condition="session('member_info')"}	
								<div class="tab-pane" id="favorite">
								<div class="aw-mod">
										<div class="mod-body">
											<div class="aw-common-list" id="c_favorite_list">
												


											</div>
										</div>
										<div class="mod-footer">
											<a class="aw-load-more-content" id="bp_favorite_more" >
												<span>更多...</span>
											</a>
										</div>
									</div>
								
								</div>
{/if}
						
							</div>
							<!-- end tab 切换内容 -->
						</div>
					</div>
				</div>

				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
					<!-- 话题描述 -->
					<div class="aw-mod aw-text-align-justify">

						<div class="mod-head">
							<h3>话题描述</h3>
						</div>
						<div class="mod-body">
														<p>{$groupinfo['describe']|html_entity_decode}</p>
													</div>
					</div>
					<!-- end 话题描述 -->

					<div class="aw-mod topic-about">
	<div class="mod-head">
		<h3>相关话题</h3>
	</div>
	<div class="mod-body" data-type="topic">
		<div class="aw-topic-bar" data-type="topic" data-id="79">
			<div class="tag-bar clearfix">
			{volist name="grouplist" id="vo"}		
					<span class="topic-tag" >
						<a class="text" href="{:es_url('Topic/index',array('name'=>$vo['name']))}">{$vo['name']}</a>
					</span>	
				{/volist}	
					
					
																</div>
		</div>
	</div>
</div>
					
					

					<!-- xx人关注该话题 -->
					<div class="aw-mod topic-status">
						<div class="mod-head">
							<h3>{$focuscount} 人关注该话题</h3>
						</div>
						<div class="mod-body">
							<div id="focus_users" class="aw-border-radius-5">
							{volist name="memberlist" id="vo"}		
	                             <a href="{:es_url('user/home',array('id'=>$vo['id']))}"><img src="{$vo.userhead|getheadurl}" alt="{$vo['nickname']}"></a>
							{/volist}
							
					 </div>
						</div>
					</div>
					<!-- end xx人关注该话题 -->

					<!-- 话题修改记录 -->
										<!-- end 话题修改记录 -->

									</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">

	var CONTENTS_TOPIC_ID ="{$groupinfo['id']}";

	var CONTENTS_TOPIC_TITLE = "{$groupinfo['name']}";
</script>
<script type="text/javascript" src="__JS__/topic.js"></script>
{/block}